home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10997 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  903 b 

  1. Path: news.cybercom.net!usenet
  2. From: kcoleman@cybercom.net (Kenneth Coleman)
  3. Newsgroups: comp.lang.c++
  4. Subject: STL vector copy ctor/assigment & reserve()
  5. Date: Tue, 12 Mar 1996 02:27:58 GMT
  6. Organization: Cyber Access Internet Services (617) 396-0491
  7. Message-ID: <4i2nbd$rt7@orion.cybercom.net>
  8. NNTP-Posting-Host: dial3-17.cybercom.net
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I don't know if this is on purpose or not, but neither the copy
  12. constructor nor the assignment operator appears to take into account
  13. the fact that the function reserve() may have been called on the copy
  14. source.  It basically makes the size of the vector into the number of
  15. elements in the range [start, finish).
  16.  
  17. Is this on purpose, or is it a bug?  I can't find any mention of this
  18. particular "feature" in the documentation I have, or in the working
  19. paper.
  20.  
  21. Thanks for any help you can give me!
  22.  
  23. - Ken.
  24. kcoleman@cybercom.net
  25.  
  26.  
  27.